<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="categoryForm.title"/></title>
</head>


<s:form name="categoryForm" action="saveCategory" method="post" validate="false">
<s:hidden name="cateId" value="%{entity.id}"/>
<table>
<tr>
	<td width="250">
		<s:text name="category.categoryName">:</s:text>
    </td>
    <td>
    	<b><s:text name="categoryName"></s:text></b>
   </td>
</tr>  
<tr>
	<td>
		<s:text name="category.description">:</s:text>
    </td>
    <td>
    	<b><s:text name="description"></s:text></b>
   </td>
</tr>  

<tr>
	<td>
		<s:text name="category.code">:</s:text>
    </td>
    <td>
    	<b><s:text name="code"></s:text></b>
   </td>
</tr>  
<tr>
	<td>
		<s:text name="category.shortName">:</s:text>
    </td>
    <td>
    	<b><s:text name="shortName"></s:text></b>
   </td>
</tr>  
    <s:select  key="category.workflow" cssStyle="max-width: 500px !important;"  disabled="1" name="workflowId" list="workflows" listKey="id" listValue="name" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select>
    <s:select key="category.field" cssStyle="max-width: 500px !important;"  disabled="1" name="fieldId" list="fields" listKey="id" listValue="name" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select>
    <s:select key="category.report" disabled="1" name="reportId" list="lstReport" listKey="id" listValue="reportName" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select>
    <s:select key="category.voucher" disabled="1" name="voucherId" list="lstReport" listKey="id" listValue="reportName" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select>
    
<%-- <tr>
	<td>
		<s:text name="category.feeNew">:</s:text>
    </td>
    <td>
    	<b><s:text name="feeNew"></s:text></b>
   </td>
</tr>  
<tr>
	<td>
		<s:text name="category.feeChange">:</s:text>
    </td>
    <td>
    	<b><s:text name="feeChange"></s:text></b>
   </td>
</tr>   --%>
<%-- <tr>
	<td>
		<s:text name="category.processTime">:</s:text>
    </td>
    <td>
    	<b><s:text name="processTime"></s:text></b>
   </td>
</tr>  --%> 

<%-- <tr>
	<td colspan="2"></td>
</tr>
<tr>
	<td colspan="2"><b><fmt:message key="categoryDetail.attachFileList"/></b></td>
</tr>
<display:table name="files"  class="table" requestURI="" id="files" export="false" pagesize="10">
    <display:column property="attachFileName" sortable="false" paramId="id" paramProperty="id" titleKey="category.attachfiles"/>
</display:table> --%>

</table>


<fieldset>
    <legend><strong><img src="${ctx}/images/folder_open.png" align="left" height="20" width="20"><fmt:message key="categoryDetail.attachFileList"/></strong></legend>
    <s:set var="file_name" value="%{getText('file.item_name')}" scope="page"></s:set>
	<s:set var="files_name" value="%{getText('file.items_name')}" scope="page"></s:set>
	
    <display:table name="files"  class="table" requestURI="" id="files" export="false" pagesize="10">
    	<display:setProperty name="paging.banner.item_name" value="${file_name}"/>
		<display:setProperty name="paging.banner.items_name" value="${files_name}"/>
    	<display:column property="attachFileName" sortable="false" paramId="id" paramProperty="id" titleKey="category.attachfiles"/>
	</display:table>
</fieldset>


</s:form>

<button type="submit" class="button" name="cancel" onclick="location.href='categories.html?fieldId=${fieldId}';">
	<fmt:message key="button.back.title"></fmt:message>
</button>
